package com.cloud.xtools.user.service.admin;

import com.baomidou.mybatisplus.extension.service.IService;
import com.cloud.xtools.user.domain.entity.User;
import com.cloud.xtools.user.domain.request.admin.UserLoginRequest;
import com.cloud.xtools.user.domain.request.admin.UserRegisterRequest;
import com.cloud.xtools.user.domain.resource.TokenResource;
import com.cloud.xtools.user.domain.resource.admin.UserResource;

/**
 * @author Daixinguo
 */
public interface AuthService extends IService<User> {

    // 注册
    UserResource register(UserRegisterRequest userRegisterRequest);
    // 登录
    TokenResource login(UserLoginRequest userLoginRequest);
    // 退出登录
    void logout();
}
